package com.nuoniu.sibanyun.entity.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 规则凭证定义主表
 * </p>
 *
 * @author 小啊刚
 * @since 2022-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fab_rule_voucher_set_main")
@ApiModel(value="VRuleVoucherSetMain对象", description="规则凭证定义主表")
public class VRuleVoucherSetMain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "账套年份")
    @TableField("account_year")
    private Integer accountYear;

    @ApiModelProperty(value = "会计期间")
    @TableField("account_period")
    private Integer accountPeriod;

    @ApiModelProperty(value = "编号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "凭证类型:1常用凭证2规则凭证")
    @TableField("v_type")
    private Integer vType;

    @ApiModelProperty(value = "类型:1普通转账2:损益结转3:待摊处理4自定义")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "是否期末处理0否1是")
    @TableField("is_period_end")
    private Integer isPeriodEnd;

    @ApiModelProperty(value = "期间类型:1日2:月3:年")
    @TableField("period_type")
    private Integer periodType;

    @ApiModelProperty(value = "凭证类别id")
    @TableField("v_class_id")
    private Integer vClassId;

    @ApiModelProperty(value = "凭证类别名称")
    @TableField("v_class_name")
    private String vClassName;

    @ApiModelProperty(value = "凭证字")
    @TableField("class_word")
    private String classWord;

    @ApiModelProperty(value = "检查策略:1检查0不检查")
    @TableField("begin_date")
    private LocalDate beginDate;

    @ApiModelProperty(value = "附单据数")
    @TableField("check_strategy")
    private Integer checkStrategy;

    @ApiModelProperty(value = "状态1:启用0:不启用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "业务日期")
    @TableField("business_date")
    private LocalDateTime businessDate;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "明细列表")
    @TableField(exist = false)
    private List<VRuleVoucherSetDetail> orderDetailList;
}
